import MkIconfont from './index.vue'
const customCache = new Set()

MkIconfont.install = function (Vue, options) {
  const { scriptUrl } = options
  const script = document.createElement('link')
  script.setAttribute('rel', 'stylesheet')
  script.setAttribute('type', 'text/css')
  script.setAttribute('href', scriptUrl)
  // script.setAttribute('data-namespace', scriptUrl)
  customCache.add(scriptUrl)
  document.head.appendChild(script)
  Vue.component(MkIconfont.name, MkIconfont)
}

export default MkIconfont
